<?php 

include 'MyRedis.php';
$re = MyRedis::set("aaa","aaa");
echo "set:" . $re;
echo "<br>";
$re = MyRedis::get("aaa");
echo "get:" . $re;
echo "<br>";

require_once 'Connection.php';
$myconfig = include "./config.php";
$mysql = $myconfig['mysql'];

$db = new \Workerman\MySQL\Connection($mysql['host'], $mysql['port'], $mysql['user'], $mysql['password'], $mysql['db_name']);
$re = $db->query("select * from user limit 0,1");
var_dump($re);
echo "<br>";
?>